package com.reptile.enums;

/**
* @version: V1.0
* @author: szw
* @className: YsNewEnum
* @packageName: YsNewEnum
* @description: 枚举类
* @data: 2021-3-16
**/ 
public enum YsBaseEnum {

    //系统默认
    SYSTEM_NORMAL("0", "系统正常"),
    SERVICE_ERROR("-1", "服务异常"),
    SUCESS("1", "成功"),
    NO_AUTHORITY("2", "无权访问"),
    JEDIS_HOST_TO_URL_IS_NULL("3","找不到redis配置"),

    /**新闻的类型*/
    NEWS_XINLANG_10("10","新浪新闻枚举"),
    NEWS_BTFAN_11("11","比特范枚举"),

    /**新闻分类*/
    NEWS_TYPE_SX("SX","时讯"),
    NEWS_TYPE_HB("HB","货币"),
    NEWS_TYPE_CJ("CJ","财经"),
    NEWS_TYPE_SJ("SJ","世界观"),
    NEWS_TYPE_XW("XW","新闻"),
    NEWS_TYPE_JS("JS","新闻"),
    NEWS_TYPE_IT_CSDN_HOT_HT("IT-CSDN","IT热门话题"),
    NEWS_TYPE_INTERNATIONAL("INTE","国际新闻"),
    ;

    private String code;
    private String desc;

    YsBaseEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
